﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FlexySys.Web.Core;

namespace Web.Document
{
    public partial class Home : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string[] widgetNames = { "DateTime", "Mail", "News", "Trading", "Weather", "Calendar", "Tasks", "Document" };
            repeater.DataSource = widgetNames;
            repeater.DataBind();
        }

        protected string GetClientButtonClickHandler(RepeaterItem container)
        {
            return string.Format("function(s, e) {{ ShowWidgetPanel('{0}') }}", container.DataItem);
        }
    }
}